package com.cci.kangdao.service.impl;

import java.util.List;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cci.kangdao.dao.UnifiedRepairDao;
import com.cci.kangdao.service.UnifiedRepairService;
import com.cci.kangdao.utilTool.ParameterTool;
import com.cci.kangdao.utilTool.RequestContextHolder;

import net.sf.json.JSONObject;


@Service
public class UnifiedRepairServiceImpl implements UnifiedRepairService {
	
	@Autowired
	private UnifiedRepairDao unifiedRepairDao;

	@Override
	public void getUnifiedRepairList() {
		HttpServletResponse response = RequestContextHolder.getResponse();
		List<String> unifiedRepairList = unifiedRepairDao.getUnifiedRepairList();
		JSONObject obj = new JSONObject();
		obj.put("status", 0);
		obj.put("msg", "查询成功");
		obj.put("data", unifiedRepairList);
		ParameterTool.writeResponse(response, obj.toString());
	}
	
}
